package com.xuecheng.teaching.service;

import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.dto.WorkDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.WorkVo;
import com.xuecheng.teaching.domain.Work;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 作业 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-12-18
 */
public interface WorkService extends IService<Work> {

    //分页查询
    ResponseResult<WorkVo> findByPage(PageRequest pageRequest, WorkDto workDto);

    //新增或修改试卷
    ResponseResult saveOrUpdateWork(WorkDto workDto);

    //根据id查询试卷
    ResponseResult<WorkVo> findWorkById(Long workId);

    //根据id删除试卷
    ResponseResult deleteWork(Long workId);
}
